@prefixCls: email-static-view;
.@{prefixCls} {
  .defaut-height {
    height: 100%;
    overflow: hidden;
  }
  .defaut-height;
  padding: 10px;
  color: #484a4d;
  position: relative;
  .ant-spin-nested-loading, .ant-spin-container {
    .defaut-height;
  }
  .ant-spin-spinning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  &-base {
    min-height: 100px;
    border-bottom: 1px solid #ddd;
    >div {
      margin-bottom: 10px;
    }
    &-send {
      vertical-align: middle;
      line-height: 40px;
      overflow: hidden;
      .user-base-info {
        float: left;
        >a {
          color: #484a4d;
          margin: 0 10px;
        }
        .userName {
          margin: 0 10px;
        }
      }
      &-ops {
        float: right;
        margin-right: 20px;
        >span.isSimple {
          cursor: pointer;
        }
      }
    }
    &-to {
      &-title {
        float: left;
        color: #999;
        min-width: 48px;
        margin-right: 10px;
      }
    }
    &-title {
      font-size: 16px;
      margin-top: 15px;
      line-height: 22px;
      &-unreadedcount {
        color: #999;
        cursor: pointer;
        text-decoration: underline;
        margin: 0 14px;
      }
    }
    &-files {
      >a {
        margin-left: 12px;
      }
    }
  }
  &-content {
    padding: 10px 5px;
    min-height: 100px;
    iframe {
      border: 0;
    }
  }
  &-files {
    &-title {
      border-bottom: 1px solid #e2e2e2;
      line-height: 18px;
      padding: 10px;
      color: #333;
      .icon-email-Enclosure {
        margin-right: 10px;
        color: #040000;
      }
      &-batch-download {
        float: right;
        color: #4d7ad8;
        &>span:first-child {
          cursor: pointer;
          margin-right: 8px;
          .icon-coms-download {
            margin-right: 8px;
            font-size: 16px;
            vertical-align: text-bottom;
          }
        }
        &>span:last-child {
          color: #999;
        }
      }
    }
    &-list {
      .clearfloat {
        clear: both;
        content: ".";
        display: block;
        font-size: 0;
        height: 0;
        visibility: hidden;
        _zoom: 1;
      }
      &:after{
        .clearfloat;
      }
      &-item {
        width: 288px;
        height: 68px;
        padding: 6px 6px 6px 72px;
        margin: 10px 32px 0 0;
        float: left;
        &:after{
          .clearfloat;
        }
        &>div {
          float: left;
        }
        &-img {
          width: 56px;
          height: 56px;
          border-radius: 4px;
          float: left;
          margin-left: -66px;
          position: relative;
          >i {
            font-size: 56px;
            line-height: 1;
            cursor: pointer;
          }
        }
        &-content {
          width: 100%;
          margin-top: 10px;
          &>p {
            cursor: pointer;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            color: #333;
            &:last-child {
              color: #888;
              margin-top: 6px;
            }
          }
        }
        &-ops {
          margin-right: -82px;
          line-height: 56px;
          display: none;
          &>i {
            color: #666;
            cursor: pointer;
            font-size: 16px;
            margin-left: 15px;
          }
        }
        &:hover {
          padding-right: 82px;
          background-color: #F3F9FF;
          .@{prefixCls}-files-list-item-ops {
            display: block;
          }
        }
      }
    }
  }

  &-readlist {
    .wea-dialog-body {
      &>div {
        height: 100%;
        .ant-spin-container {
          height: 100%;
        }
      }
    }
    &-title {
      padding-right: 14px;
      background: #f4f4f4;
      &-btn {
        padding: 14px;
        padding-right: 0;
        &>div {
          border: 1px solid #cbcbcb;
          background: #fff;
          padding: 10px 10px 16px 76px;
          cursor: pointer;
          &>i {
            line-height: 46px;
            font-size: 46px;
            float: left;
            margin-left: -56px;
            margin-top: 3px;
          }
          &>p {
            font-size: 24px;
            &:last-of-type {
              font-size: 12px;
              color: #333;
            }
          }
          &:hover {
            border-color: #3b89f7;
          }
        }
        &-selected {
          &>div {
            border-color: #3b89f7;
            box-shadow: 0 0 4px 0 #3b89f7;
          }
        }
      }
    }
    &-table {
      height: calc(100% - 108px);
    }
  }
}

@prefixClp: emial-static-collapse;
.@{prefixClp} {
  >.icon-coms-down2, >.icon-coms-up2 {
    font-size: 14px;
    float: right;
    cursor: pointer;
    color: #b2b2b2;
    margin: 3px 3px 0 0;
  }
  &-content {
    &-tag {
      display: inline-block;
      height: 20px;
      padding: 0 8px;
      background-color: #d4e8fc;
      margin: 0 10px 5px 0;
      border-radius: 3px;
      position: relative;
      &>a.isInternal {
        color: #4d7ad8;
        &:hover,
        &:visited {
          color: #00a9ff;
          text-decoration: underline;
        }
      }
    }
    &-wrap {
      overflow: hidden;
    }
  }
}